import Vue from 'vue'
import App from './App'
import router from './router'
import store from "./store/index";
// import { Tab, Tabs } from 'vant';
import Vant, { Lazyload, Toast, Dialog } from "vant";
Vue.use(Lazyload);
import cookies from 'js-cookie'
import "vant/lib/index.css";
import "@/libs/rem";
// 字体库
import '@/assets/iconfont/iconfont.css'
Vue.config.productionTip = false;
import clipboardCopy from "clipboard-copy";
Vue.prototype.$copy = clipboardCopy;
Vue.prototype.$toast = Toast
Vue.prototype.$Dialog = Dialog
Vue.prototype.$cookies = cookies
Vue.use(Vant);
// Vue.use(Tab).use(Tabs);
Vue.component("Navs", () =>
    import ("@/components/common/nav"));
Vue.component("Tabbar", () =>
    import ("@/components/common/tabbar.vue"));
Vue.component("Main", () =>
    import ("@/components/common/main.vue"));
Vue.config.productionTip = false;
Vue.directive('title', {
    inserted: function(el, binding) {
        document.title = el.dataset.title
    }
})

/* eslint-disable no-new */
// 全局注入mixins
import "@/assets/style.less"
import { mixin } from '@/libs/mixin'
Vue.mixin(mixin)
    // 获取手机信息后执行



new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App)
})